﻿using System.ComponentModel.DataAnnotations;

namespace K9Nano.Domain.Entities;

/// <summary>
/// 角色权限实体类
/// </summary>
public abstract class RolePermissionBase<TRole> : AuditEntityBase
    where TRole : RoleBase
{
    public long RoleId { get; set; }

    [StringLength(255)]
    public string Permission { get; set; }

    public TRole Role { get; set; }
}